/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconQuota: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M512 96c229.76 0 416 186.24 416 416s-186.24 416-416 416S96 741.76 96 512 282.24 96 512 96z m0 64C317.6 160 160 317.6 160 512s157.6 352 352 352 352-157.6 352-352S706.4 160 512 160z m192.704 224.8c27.328 0 41.536 31.68 24.96 52.032l-2.432 2.72-176.704 175.168a32 32 0 0 1-42.144 2.56l-3.008-2.656-73.376-73.344-89.376 89.344a32 32 0 0 1-42.24 2.656l-3.008-2.656a32 32 0 0 1-2.656-42.24l2.656-3.008 112-112a32 32 0 0 1 42.24-2.656l3.008 2.656 73.472 73.44 98.848-98.016h-49.824a32 32 0 0 1-31.776-28.256l-0.224-3.744a32 32 0 0 1 28.256-31.776l3.744-0.224h127.584z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconQuota.defaultProps = {
  size: 18,
};

export default IconQuota;
